package ;
import format.display.MovieClip;
import org.flixel.FlxBasic;
import org.flixel.FlxParticle;
import org.flixel.FlxSprite;
import org.flixel.FlxState;
import org.flixel.FlxGame;
import nme.Assets;
import org.flixel.FlxG;
import org.flixel.tweens.FlxTween;
import org.flixel.FlxCamera;

/**
 * ...
 * @author Tav
 */

class PlayState extends FlxState
{
	
	public static var g : FlxGame = new FlxGame(800, 600, PlayState);
	public static var ui : UI;
	public static var note : Notes;
	

	override public function create():Void
	{
		ui = new UI();
		
		add (ui.callBg());
		add (ui.members[0]);
		//for( i in 0...ui.group.length)
		//{
			//add (ui.group.members[0]);
		//}
	}
	
	override function update()
	{
		ui.update();
		note = new Notes(400, 400, "default");
		note.x -= note.acceleration.x;
		
			if (FlxG.keys.justPressed("NUMPADONE"))
			{
				note = new Notes(400, 400, "default");
				trace ("spell type 1");
			}
			if (FlxG.keys.justPressed("NUMPADTWO"))
			{
				trace ("spell type 2");
			}
			if (FlxG.keys.justPressed("NUMPADTHREE"))
			{
				trace ("spell type 3");
			}
	
	}
	
}